<template>
    <el-container>
        <el-aside width="auto">
            <ComponentAside></ComponentAside>
        </el-aside>
        <el-container>
            <el-header>
                <ComponentHeader></ComponentHeader>
            </el-header>
            <el-main>
                <keep-alive>
                    <router-view></router-view>
                </keep-alive>
            </el-main>
        </el-container>
    </el-container>
</template>

<script>
import ComponentAside from "../components/ComponentAside.vue";
import ComponentHeader from "../components/ComponentHeader.vue";

export default {
    name: "MainView",
    components: {
        ComponentAside,
        ComponentHeader,
    },
};
</script>

<style lang="less" scoped>
.el-container {
    margin: 0;
    padding: 0;
    height: 100vh;
    .el-side {
        width: 400px;
    }
    .el-header {
        padding: 0;
        height: auto !important;
    }

    .el-main {
        padding: 10px;
        margin: 0;
        height: 90vh;
    }
}
</style>